<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BComboItem</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BComboItem">
			<h1>BComboItem</h1>
			<p>继承自<a href="BObject.html">BObject</a></p>
			<p id="resume">BComboItem是下位列表框的列表项，是标准对齐项包含图标文本和一个值。<a href="#desc">详细</a></p><h2>public</h2>
			<table id="public">
				<tr><td align="right"/><td><a href="#BComboItem(const BValue&)">BComboItem</a>(const BValue&amp; value = BValue());</td></tr>
				<tr><td align="right"/><td><a href="#BComboItem(const BString&,const BValue&)">BComboItem</a>(const BString&amp; text, const BValue&amp; value = BValue());</td></tr>
				<tr><td align="right"/><td><a href="#BComboItem(BIcon*, const BString&,const BValue&)">BComboItem</a>(BIcon* icon, const BString&amp; text, const BValue&amp; value = BValue());</td></tr>
				<tr><td align="right"/><td><a href="#BComboItem(BImage*, const BString&,const BValue&)">BComboItem</a>(BImage* image, const BString&amp; text, const BValue&amp; value = BValue());</td></tr>
				<tr><td align="right"/><td><a href="#BComboItem(Graph, const BString&,const BValue&)">BComboItem</a>(Graph graph, const BString&amp; text, const BValue&amp; value = BValue());</td></tr>
				<tr><td align="right"/><td><a href="#~BComboItem()">~BComboItem</a>();</td></tr>
				<tr><td align="right">bool </td><td><a href="#setVisible(bool)">setVisible</a>(bool visible);</td></tr>
				<tr><td align="right">bool </td><td><a href="#visible() const">visible</a>() const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#setForm(Form)">setForm</a>(Form form);</td></tr>
				<tr><td align="right">Form </td><td><a href="#form() const">form</a>() const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#setAlign(Align)">setAlign</a>(Align align);</td></tr>
				<tr><td align="right">Align </td><td><a href="#align() const">align</a>() const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#setSpacing(int)">setSpacing</a>(int spacing);</td></tr>
				<tr><td align="right">int </td><td><a href="#spacing() const">spacing</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setGraph(Graph)">setGraph</a>(Graph graph);</td></tr>
				<tr><td align="right">Graph </td><td><a href="#graph() const">graph</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setImage(BImage*)">setImage</a>(BImage* image);</td></tr>
				<tr><td align="right">BImage* </td><td><a href="#image() const">image</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setIcon(BIcon*)">setIcon</a>(BIcon* icon);</td></tr>
				<tr><td align="right">BIcon* </td><td><a href="#icon() const">icon</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setColor(BByte, BByte, BByte,BByte)">setColor</a>(BByte r, BByte g, BByte b, BByte a = 255);</td></tr>
				<tr><td align="right">void </td><td><a href="#setColor(const BColor&)">setColor</a>(const BColor&amp; color);</td></tr>
				<tr><td align="right">const BColor&amp; </td><td><a href="#color() const">color</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setText(const BString&)">setText</a>(const BString&amp; text);</td></tr>
				<tr><td align="right">const BString&amp; </td><td><a href="#text() const">text</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setTips(const BString&)">setTips</a>(const BString&amp; tips);</td></tr>
				<tr><td align="right">const BString&amp; </td><td><a href="#tips() const">tips</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setTextFormat(BTextFormat*)">setTextFormat</a>(BTextFormat* textFormat);</td></tr>
				<tr><td align="right">const BTextFormat* </td><td><a href="#textFormat() const">textFormat</a>() const;</td></tr>
				<tr><td align="right">BTextFormat* </td><td><a href="#textFormat()">textFormat</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setBackground(BByte, BByte, BByte,BByte)">setBackground</a>(BByte r, BByte g, BByte b, BByte a = 255);</td></tr>
				<tr><td align="right">void </td><td><a href="#setBackground(const BColor&)">setBackground</a>(const BColor&amp; background);</td></tr>
				<tr><td align="right">const BColor&amp; </td><td><a href="#background() const">background</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setForeground(BByte, BByte, BByte,BByte)">setForeground</a>(BByte r, BByte g, BByte b, BByte a = 255);</td></tr>
				<tr><td align="right">void </td><td><a href="#setForeground(const BColor&)">setForeground</a>(const BColor&amp; foreground);</td></tr>
				<tr><td align="right">const BColor&amp; </td><td><a href="#foreground() const">foreground</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setValue(const BValue&)">setValue</a>(const BValue&amp; value);</td></tr>
				<tr><td align="right">const BValue&amp; </td><td><a href="#value() const">value</a>() const;</td></tr>
				<tr><td align="right">int </td><td><a href="#index() const">index</a>() const;</td></tr>
				<tr><td align="right">BRect </td><td><a href="#rect() const">rect</a>() const;</td></tr>
				<tr><td align="right">BRect </td><td><a href="#iconRect() const">iconRect</a>() const;</td></tr>
				<tr><td align="right">BRect </td><td><a href="#textRect() const">textRect</a>() const;</td></tr>
				<tr><td align="right">BRect </td><td><a href="#textArea() const">textArea</a>() const;</td></tr>
				<tr><td align="right">BComboBox* </td><td><a href="#comboBox()">comboBox</a>();</td></tr>
				<tr><td align="right">const BComboBox* </td><td><a href="#comboBox() const">comboBox</a>() const;</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2>
				<p>BComboItem是下位列表框的列表项，是标准对齐项包含图标文本和一个值。</p><p>如图所示：<br/>
					<img href="image/标准对齐项模型.png" src="image/标准对齐项模型.png"/></p><h4>信号表：</h4><table>
					<tr><td>Signal_ValueChanged</td><td>当值被改变时发出，值为：BValue value。</td></tr>
					<tr><td>Signal_TextChanged</td><td>当文本被改变时发出，值为：BString text。</td></tr>
					<tr><td>Signal_Show</td><td>当改变为显示状态时发出，值为：bool visible = true。</td></tr>
					<tr><td>Signal_Hide</td><td>当改变为隐藏状态时发出，值为：bool visible = false。</td></tr>
					<tr><td>Signal_FormChanged</td><td>当显示样式被改变时发出，值为：Form form。</td></tr>
					<tr><td>Signal_AlignChanged</td><td>当显示对齐方式被改变时发出，值为：Align align。</td></tr>
					<tr><td>Signal_SpacingChanged</td><td>当图标与文本的间隔改变时发出，值为：int spacing。</td></tr>
					<tr><td>Signal_ColorChanged</td><td>当颜色被改变时发出，值为：BColor color。</td></tr>
					<tr><td>Signal_GraphChanged</td><td>当图样被改变时发出，值为：Graph graph。</td></tr>
					<tr><td>Signal_ImageChanged</td><td>当图像被改变时发出，值为：BImage* image。</td></tr>
					<tr><td>Signal_IconChanged</td><td>当图标被改变时发出，值为：BIcon* icon。</td></tr>
					<tr><td>Signal_FormatChanged</td><td>当文本格式化对象改变时发出，值为：BTextFormat* format。</td></tr></table>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="BComboItem(const BValue&)">
				<h3>BComboItem(const BValue&amp; value = BValue());</h3>
				<p>构造一个下拉列表项，value指定其值。</p>
			</div>
			<div id="BComboItem(const BString&,const BValue&)">
				<h3>BComboItem(const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>构造一个下拉列表项，text指定其文本，value指定其值。</p>
			</div>
			<div id="BComboItem(BIcon*, const BString&,const BValue&)">
				<h3>BComboItem(BIcon* icon, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>构造一个下拉列表项，icon指定其图标，text指定其文本，value指定其值。</p>
			</div>
			<div id="BComboItem(BImage*, const BString&,const BValue&)">
				<h3>BComboItem(BImage* image, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>构造一个下拉列表项，image指定其图像，text指定其文本，value指定其值。</p>
			</div>
			<div id="BComboItem(Graph, const BString&,const BValue&)">
				<h3>BComboItem(Graph graph, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>构造一个下拉列表项，graph指定其图样，text指定其文本，value指定其值。</p>
			</div>
			<div id="~BComboItem()">
				<h3>~BComboItem();</h3>
				<p>析构一个下拉列表项。</p>
			</div>
			<div id="setVisible(bool)">
				<h3>bool setVisible(bool visible);</h3>
				<p>设置此项是否显示，但不显示时布局会略过它，自然就无法进行点选了。</p>
			</div>
			<div id="visible() const">
				<h3>bool visible() const;</h3>
				<p>判断此项是否显示。</p>
			</div>
			<div id="setForm(Form)">
				<h3>bool setForm(Form form);</h3>
				<p>设置此项的对齐方式，此设置会被样式表覆盖。</p>
			</div>
			<div id="form() const">
				<h3>Form form() const;</h3>
				<p>获得此项的对齐方式。</p>
			</div>
			<div id="setAlign(Align)">
				<h3>bool setAlign(Align align);</h3>
				<p>设置此项的对齐方式。</p>
			</div>
			<div id="align() const">
				<h3>Align align() const;</h3>
				<p>获得此项的对齐方式。</p>
			</div>
			<div id="setSpacing(int)">
				<h3>bool setSpacing(int spacing);</h3>
				<p>设置此项图标与文本的间隔。</p>
			</div>
			<div id="spacing() const">
				<h3>int spacing() const;</h3>
				<p>获得此项图标与文本的间隔。</p>
			</div>
			<div id="setGraph(Graph)">
				<h3>void setGraph(Graph graph);</h3>
				<p>设置此项的图样。</p>
			</div>
			<div id="graph() const">
				<h3>Graph graph() const;</h3>
				<p>获得此项的图样。</p>
			</div>
			<div id="setImage(BImage*)">
				<h3>void setImage(BImage* image);</h3>
				<p>设置此项的图像。</p>
			</div>
			<div id="image() const">
				<h3>BImage* image() const;</h3>
				<p>获得此项的图像。</p>
			</div>
			<div id="setIcon(BIcon*)">
				<h3>void setIcon(BIcon* icon);</h3>
				<p>设置此项的图标。</p>
			</div>
			<div id="icon() const">
				<h3>BIcon* icon() const;</h3>
				<p>获得此项的图标。</p>
			</div>
			<div id="setColor(BByte, BByte, BByte,BByte)">
				<h3>void setColor(BByte r, BByte g, BByte b, BByte a = 255);</h3>
				<p>设置此项的颜色。</p>
			</div>
			<div id="setColor(const BColor&)">
				<h3>void setColor(const BColor&amp; color);</h3>
				<p>设置此项的颜色。</p>
			</div>
			<div id="color() const">
				<h3>const BColor&amp; color() const;</h3>
				<p>获得此项的颜色。</p>
			</div>
			<div id="setText(const BString&)">
				<h3>void setText(const BString&amp; text);</h3>
				<p>设置此项的文本。</p>
			</div>
			<div id="text() const">
				<h3>const BString&amp; text() const;</h3>
				<p>获得此项的文本。</p>
			</div>
			<div id="setTips(const BString&)">
				<h3>void setTips(const BString&amp; tips);</h3><p>设置此项的提示语。</p>
			</div>
			<div id="tips() const">
				<h3>const BString&amp; tips() const;</h3><p>获得此项的提示语。</p>
			</div>
			<div id="setTextFormat(BTextFormat*)">
				<h3>void setTextFormat(BTextFormat* textFormat);</h3>
				<p>设置此项的文本格式化对象。</p>
			</div>
			<div id="textFormat() const">
				<h3>const BTextFormat* textFormat() const;</h3>
				<p>获得此项的文本格式化对象。</p>
			</div>
			<div id="textFormat()">
				<h3>BTextFormat* textFormat();</h3><p>获得此项的文本格式化对象。</p>
			</div>
			<div id="setBackground(BByte, BByte, BByte,BByte)">
				<h3>void setBackground(BByte r, BByte g, BByte b, BByte a = 255);</h3>
				<p>设置此项的背景颜色，此值优先级高于样式表，且不会被样式表覆盖。</p>
			</div>
			<div id="setBackground(const BColor&)">
				<h3>void setBackground(const BColor&amp; background);</h3>
				<p>设置此项的背景颜色，此值优先级高于样式表，且不会被样式表覆盖。</p>
			</div>
			<div id="background() const">
				<h3>const BColor&amp; background() const;</h3>
				<p>获得此项的背景颜色。</p>
			</div>
			<div id="setForeground(BByte, BByte, BByte,BByte)">
				<h3>void setForeground(BByte r, BByte g, BByte b, BByte a = 255);</h3>
				<p>设置此项的前景颜色，此值优先级高于样式表，且不会被样式表覆盖。</p>
			</div>
			<div id="setForeground(const BColor&)">
				<h3>void setForeground(const BColor&amp; foreground);</h3>
				<p>设置此项的前景颜色，此值优先级高于样式表，且不会被样式表覆盖。</p>
			</div>
			<div id="foreground() const">
				<h3>const BColor&amp; foreground() const;</h3>
				<p>设置此项的前景颜色，此值优先级高于样式表，且不会被样式表覆盖。</p>
			</div>
			<div id="setValue(const BValue&)">
				<h3>void setValue(const BValue&amp; value);</h3>
				<p>设置值。</p>
			</div>
			<div id="value() const">
				<h3>const BValue&amp; value() const;</h3>
				<p>取得值。</p>
			</div>
			<div id="index() const">
				<h3>int index() const;</h3>
				<p>获得此项的次序索引值。</p>
			</div>
			<div id="rect() const">
				<h3>BRect rect() const;</h3>
				<p>获得此项的矩形区域。</p>
			</div>
			<div id="iconRect() const">
				<h3>BRect iconRect() const;</h3>
				<p>获得此项图标的显示区域。</p>
			</div>
			<div id="textRect() const">
				<h3>BRect textRect() const;</h3>
				<p>获得此项文本的显示区域。</p>
			</div>
			<div id="textArea() const">
				<h3>BRect textArea() const;</h3>
				<p>获得此项文本的布局区域。</p>
			</div>
			<div id="comboBox()">
				<h3>BComboBox* comboBox();</h3>
				<p>获得此项所在的下位列表框对象。</p>
			</div>
			<div id="comboBox() const">
				<h3>const BComboBox* comboBox() const;</h3>
			</div>
		</div>
	</body>
</html>